package org.come.Jpanel;

import java.awt.CardLayout;
import java.awt.Dimension;

import javax.swing.JPanel;

/**
 * @author HGC<br>
 * @time 2019年12月20日 上午9:49:49<br>
 * @class 类名:PartnerCardJpanel 伙伴卡片布局 <br>
 */
public class PartnerCardJpanel extends JPanel {
    private CardLayout cardLayout;

    private PartnerTeamJpanel partnerTeamJpanel;
    private PartnerSkillJpanel partnerSkillJpanel;
    private PartnerEquipJpanel partnerEquipJpanel;

    public PartnerCardJpanel() {
        cardLayout = new CardLayout();
        this.setPreferredSize(new Dimension(356, 301));
        this.setOpaque(false);
        this.setLayout(cardLayout);

        partnerTeamJpanel = new PartnerTeamJpanel();
        partnerSkillJpanel = new PartnerSkillJpanel();
        partnerEquipJpanel = new PartnerEquipJpanel();
        this.add("team", partnerTeamJpanel);
        this.add("skill", partnerSkillJpanel);
        this.add("equip", partnerEquipJpanel);

    }

    public CardLayout getCardLayout() {
        return cardLayout;
    }

    public void setCardLayout(CardLayout cardLayout) {
        this.cardLayout = cardLayout;
    }

    public PartnerTeamJpanel getPartnerTeamJpanel() {
        return partnerTeamJpanel;
    }

    public void setPartnerTeamJpanel(PartnerTeamJpanel partnerTeamJpanel) {
        this.partnerTeamJpanel = partnerTeamJpanel;
    }

    public PartnerSkillJpanel getPartnerSkillJpanel() {
        return partnerSkillJpanel;
    }

    public void setPartnerSkillJpanel(PartnerSkillJpanel partnerSkillJpanel) {
        this.partnerSkillJpanel = partnerSkillJpanel;
    }

    public PartnerEquipJpanel getPartnerEquipJpanel() {
        return partnerEquipJpanel;
    }

    public void setPartnerEquipJpanel(PartnerEquipJpanel partnerEquipJpanel) {
        this.partnerEquipJpanel = partnerEquipJpanel;
    }

}
